﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Shared.IdentityServer4Helper
{
    /// <summary>
    /// 
    /// </summary>
    public static class Ids4Extensions
    {
        public static IServiceCollection AddIds4(this IServiceCollection services)
        {
            return services;
            //return services.AddIdentityServer()//Ids4服务
            //     .AddDeveloperSigningCredential()//添加开发人员签名凭据
            //     .AddInMemoryIdentityResources(Config.GetIdentityResources()) //添加内存apiresource
            //     .AddInMemoryClients(Config.GetClients());//把配置文件的Client配置资源放到内存

        }
    }
}
